package com.dubbo.consumer.controller;

import com.dubbo.api.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作者: 林江
 * @创建时间: 2023/11/2
 * @功能:
 */
@RestController
public class DubboController {
    @DubboReference
    DemoService demoService;

    @GetMapping("/test01")
    public String test01() {
        demoService.dubboTest01();
        return "操作成功。。。。。。。。。。";
    }
}
